package com.diaohw.module.system.obj.entity;

import com.diaohw.platform.framework.db.flex.obj.model.BaseLogModel;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户登录日志 实体类。
 *
 * @author D-Hw
 * @since 2024-11-15 18:22:15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户登录日志")
@Table("LOGIN_LOG")
public class LoginLog extends BaseLogModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 创建人
     */
    @Column("ACCOUNT_ID")
    @Schema(description = "创建人")
    private String accountId;

    /**
     * 用户登录账号
     */
    @Column("USERNAME")
    @Schema(description = "用户登录账号")
    private String username;

    /**
     * 用户昵称
     */
    @Column("NICKNAME")
    @Schema(description = "用户昵称")
    private String nickname;

    /**
     * 登录IP
     */
    @Column("LOGIN_IP")
    @Schema(description = "登录IP")
    private String loginIp;

    /**
     * 浏览器
     */
    @Column("LOGIN_BROWSER")
    @Schema(description = "浏览器")
    private String loginBrowser;

}
